\documentclass[a4paper,oneside]{book}
\usepackage{rails-handbook-cn}
\def\allfiles{}

\begin{document}
\maketitle
\frontmatter
\include{contribution}
\include{overview}
\tableofcontents

\mainmatter
\include{routes}
\include{model}
\include{controller}
\include{view}

\backmatter
\include{bib}
\refstepcounter{chapter}
\addcontentsline{toc}{chapter}{索引}
\printindex
\end{document}
